﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Sandbox
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;

    class Program
    {
        static void Main()
        {
            int[] integerArray = new int[] { 0, 1, 2, 3, 4, 5 };

            clearAnArray(ref integerArray);

            Console.WriteLine( integerArray.Aggregate(String.Empty, (result, num) => String.Concat(result, num.ToString())));

            Console.Read();

        }//end void Main()

        static void clearAnArray<T>(ref T[] anArray)
        {
            for (int i = 0; i < anArray.Length; i++)
                anArray[i] = default(T);

        }//end void clearAnArray(T[])
    }//end class Program
}//end namespace Sandbox